<!-- 业务推荐 -->
<template>
  <div>
      <!-- 标题 -->
      <div class="serviceTitle">{{datas.title}}<span class="moreService">更多></span></div>
      <!-- 业务导航 -->
      <div class="serviceNav">
         <div class="oneServiceNav" v-for="(item,index) in datas.list" :key="index">
             <div class="serviceLogo"><img :src="item.img" alt=""></div>
             <div class="serviceText">{{item.text}}</div>
         </div>
      </div>
      <slot></slot>
  </div>
</template>

<script>
export default {
  data () {
    return {
    };
  },
 props:{
     datas:Object
 },
  components: {},

  computed: {},

  methods: {}
}

</script>
<style scoped>
.serviceNav{
    display: flex;
    flex-direction: row;
    width: 100%;
}
.oneServiceNav{
    width: 300px;
    height: 300px;
}
.serviceLogo{
    width: 300px;
    height: 250px;
    border: 1px solid #eee;
}
.serviceLogo img{
    width: 100%;
    height: 100%;
    margin: auto auto;
}
.serviceText{
    width: 300px;
    height: 50px;
    border: 1px solid #eee;
    text-align: center;
    line-height: 50px;
}
.serviceTitle{
    border-left: 7px solid red;
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding-left: 30px;
    box-sizing: border-box;
}
.moreService{
    float: right;
    margin-right: 30px;
    color: blue;
    font-weight: bold;
}
</style>